package TagSystemUpdate;

import java.util.Observable;
import java.util.Observer;

import Watch.DirDataChanges;

public class TSObserver  implements Observer
{

	TagSystemUpdater tagUpdater;
	DirDataChanges dirDataChange = null;
	
	public TSObserver(TagSystemUpdater updater) 
	{
		tagUpdater = updater;
	}
	
	@Override
	public void update(Observable arg0, Object arg1) 
	{
		//get the object with the changes
		dirDataChange = (DirDataChanges)arg1;
		tagUpdater.jobsQueue.add(dirDataChange);
	}

}
